<template>
	<view>
		<button class="cu-btn bg-cyan" @click="handleData">
			转存数据
		</button>
	</view>
</template>

<script>
import { cakeBatch } from '../api/cake';
	export default {
		data() {
			return {
				
			};
		},
		methods: {
			handleData() {
				uni.request({
					url:'https://h5.mcake.com/api/0434b49d1ac28f9d?cityId=641&page=1&bid=11',
					header:{
						'Access-Token':'d8db51b26c45223a4c9563a62a53f7d6',
						'Version':'v1.0'
					},
					success: (res) => {
						console.log(res);
						let {list} = res.data.data
						cakeBatch(list)
					}
				})
			}
		},
	}
</script>

<style lang="scss">

</style>
